ActionController::Routing::Routes.draw do |map|
  map.connect '/n', :controller => 'entries', :action => 'next_in_list'
  map.connect '/s', :controller => 'entries', :action => 'save'
  map.connect '/read/:entry_id', :controller => 'entries', :action => 'read'
  map.resources :users
  map.resources :lists, :has_many => :entries
  map.resources :entries
  map.connect '/login/authenticate/', :controller => 'site', :action => 'login_authenticate'
  map.connect '/login/', :controller => 'site', :action => 'login'
  map.connect '/logout/', :controller => 'site', :action => 'logout'
  map.root :controller => 'lists'
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
end
